
from fastapi import FastAPI
import models
from database import engine 
from routers import auth , todos , admin , user


app = FastAPI()

# 使用models.Base.metadata.create_all()创建所有数据库表
models.Base.metadata.create_all(bind=engine)

# 将路由包含到FastAPI应用中
app.include_router(auth.router)
app.include_router(todos.router)
app.include_router(admin.router)
app.include_router(user.router)

